home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / program / dtswps.zip / DTSFILES.ZIP / EXAMPLE / EX1.IDL < prev    next >
Text File  |  1996-06-27  |  925b  |  44 lines

  1. #ifndef ex1_idl_included
  2. #define ex1_idl_included
  3.  
  4. #include <somcls.idl>
  5. #include <wpfolder.idl>
  6.  
  7. /* interface M_EX1; */
  8.  
  9. interface EX1: WPFolder {
  10.  
  11. implementation {
  12.     dtsdefaults;
  13.     majorversion=1;
  14.     minorversion=1;
  15.     wpModifyPopupMenu: override;
  16.     //   Add option to the popup menu
  17.  
  18.     wpMenuItemSelected: override;
  19.     //   Process input from the added menu option.
  20.  
  21.     passthru C_hh =
  22. ""
  23. "   #define INCL_WIN"
  24. "   #define INCL_DOS"
  25. "   #define INCL_GPIBITMAPS"
  26. "   #define INCL_DOSERRORS"
  27. "   #include <os2.h>"
  28. ""
  29. "   #define INCL_WPFOLDER"
  30. "   #include <pmwp.h>"
  31. ""
  32. "   /*"
  33. "    *   The following user-defined Popup menu items (ID_xxx) should be higher"
  34. "    *   than WPMENUID_USER."
  35. "    */"
  36. "   #define ID_EX1MENU       (WPMENUID_USER+1) /* menu added to popup menu */"
  37. "   #define ID_DOEX1THING    (WPMENUID_USER+2) /* menu selection */"
  38. ""
  39. "";
  40.   };
  41. };
  42.  
  43. #endif
  44.